package com.mohe.shanpao.service.user.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mohe.shanpao.dao.user.SysUserMapper;
import com.mohe.shanpao.domain.user.SysUser;
import com.mohe.shanpao.service.GenericServiceImpl;
import com.mohe.shanpao.service.user.SysUserService;

@Service("sysUserService")
@Transactional
public class SysUserServiceImpl extends GenericServiceImpl<SysUser> implements SysUserService
{
    
    @Autowired
    private SysUserMapper sysUserMapper;
    
    
    @Override
    public SysUser selectById(Long id)
    {
        return (SysUser)sysUserMapper.selectByPrimaryKey(id);
    }
    
    @Override
    public SysUser selectUser(String username)
    {
        return sysUserMapper.selectUser(username);
    }

	@Override
	public SysUser getUserMenus(Long userId) {
		return null;
	}
}
